<?xml version="1.0" encoding="UTF-8" ?>
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page"
	xmlns:c="http://java.sun.com/jsp/jstl/core"
	xmlns:spring="http://www.springframework.org/tags" version="2.0">
	<jsp:directive.page contentType="text/html; charset=UTF-8"
		pageEncoding="UTF-8" session="true" />
	<jsp:output doctype-root-element="html"
		doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN"
		doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"
		omit-xml-declaration="true" />
	<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title><spring:message code="page.pay.title" /> Insert title
	here</title>
</head>
<body>
	<c:import url="header.jsp"></c:import>

	<if test="${bookingItem ne null}">
	<div>
		<table border="0">
			<tr>
				<td><spring:message code="customerpage.booking.date" /> :</td>
				<td><c:out value="${bookingItem.date}" /></td>
			</tr>
			<tr>
				<td><spring:message code="customerpage.booking.issueDate" />:
				</td>
				<td><c:out value="${bookingItem.dateOfIssue}" /></td>
			</tr>
			<tr>
				<td><spring:message code="customerpage.booking.returnDate" />:
				</td>
				<td><c:out value="${bookingItem.dateOfReturn}" /></td>
			</tr>
			<tr>
				<td><spring:message code="customerpage.booking.insurance" />:
				</td>
				<c:url
					value="/customer/show/insurance/${bookingItem.insurance.insuranceId}"
					var="insuranceRef" />
				<td><a href="${insuranceRef}" target="_blank"><c:out
							value="${bookingItem.insurance.name}" /></a></td>
			</tr>
			<tr>
				<td><spring:message code="customerpage.booking.carModel" />:</td>
				<c:url value="/customer/show/car/${bookingItem.car.carId }"
					var="carRef" />
				<td><a href="${carRef}" target="_blank"><c:out
							value="${bookingItem.car.model}" /></a></td>
			</tr>
			<tr>
				<td><spring:message code="customerpage.booking.price" />:</td>
				<td><c:out value="${bookingItemPrice}" /></td>
			</tr>
			<tr>
				<td></td>
				<td></td>
			</tr>
			<tr>
				<td></td>
				<c:url value="/customer/paid" var="paidRef" />
				<td><form action="${paidRef}" method="post">
						<input type="hidden" name="pBookingItemId"
							value="${bookingItem.bookingId}" /> <INPUT type="hidden"
							name="pPaid" value="${bookingItemPrice}" />
						<spring:message code="customerpage.booking.pay" var="payButton" />
						<input type="submit" value="${payButton}" />
					</form></td>
			</tr>
		</table>
	</div>
	</if>
</body>
	</html>
</jsp:root>